package com.runa.persistence.repository;

import com.runa.monitor.comm.entity.CommPanel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CommPanelRepository extends JpaRepository<CommPanel, String> {

    @Query("SELECT c FROM CommPanel c WHERE id IN (:ids)")
    List<CommPanel> getAllByIds(@Param("ids") List<String> ids);

    List<CommPanel> findByNetEquipmentId(String netEquipmentId);

    List<CommPanel> findBySerial(String serial);
}
